<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <!--{include file='comm/header.tpl'}-->
    <title>维权投诉处理</title>
    <style type="text/css">
        .col-sm-9 {
            padding-top: 7px;
        }
    </style>

</head>
<body>
<div style="width:100%">
    <div class="items clearfix">
        <h2 style="" class="tal">维权投诉处理</h2>

        <div class="items2">

            <form id="addForm" name="addForm" class="form-horizontal" onsubmit="return false;">

                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        投诉人：
                    </label>
                    <div class="col-sm-9">
                        <!--{$billComplain_array.cust_name}-->
                    </div>

                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        投诉时间：
                    </label>
                    <div class="col-sm-9">
                        <!--{$billComplain_array.createTime}-->
                    </div>

                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">
                       联系方式：
                    </label>
                    <div class="col-sm-9">
                        <!--{if $billComplain_array.mobile}--><!--{$billComplain_array.mobile}--><!--{else}--><!--{$billComplain_array.phone}--><!--{/if}-->
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        投诉内容：
                    </label>
                    <div class="col-sm-9">
                        <!--{$billComplain_array.complain_content}-->
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        投诉图片：
                    </label>
                    <div class="col-sm-9">
                        <!--{if $billComplain_array.img_array}-->
                        <!--{foreach $billComplain_array.img_array as $val}-->
                        <span><img src="<!--{$val.image_link}-->" style="width: 125px;height: 125px;"></span>
                        <!--{/foreach}-->
                        <!--{/if}-->
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label" for="answer_content">
                        <span class="red">*</span>
                        投诉处理备注：
                    </label>
                    <div class="col-sm-9">
                        <textarea style="height:80px;" name="complain_dispose_remark" id="complain_dispose_remark" class="form-control"><!--{$commentInfo.answer_content}--></textarea>
                    </div>
                </div>


                <input type="hidden" name="complain_id" value="<!--{$billComplain_array.complain_id}-->">

            </form>


        </div>
    </div>

    <div class="bottom_fixbox">
        <div class="rectbox tac">
            <input type="button" class="btn" onclick="bill.check();" value="处理">
            <input type="button" class="btn" onclick="E.closeWindows();" value="关闭">
        </div>
    </div>
</div>

<script>
    var complain_id = <!--{$billComplain_array.complain_id}-->
    var bill = {

        check:function( ){
            var complain_dispose_remark = $('#complain_dispose_remark').val();
            if( complain_dispose_remark=='' ){
                E.alert('维权投诉处理备注不能为空');
                return;
            }else{
                E.ajax_post({
                    url: '/invokingAjax-backend/bill/billComplain.ajax?operFlg=2',
                    data: {
                        complain_id: complain_id,
                        complain_dispose_remark:complain_dispose_remark
                    },
                    call: function( o ) {
                        if (o.code == 200) {
                            E.alert(o.message,2,"bill.res()");

                        }else{
                            E.alert(o.message);
                        }

                    }
                });
            }
        },

        res:function(){

            E.opener("bill.load");

            E.closeWindows();
        }
    };
</script>
</body>
</html>